package com.ruoyi.web.controller.system;

import com.ruoyi.system.domain.WordCategory;
import com.ruoyi.system.service.IWordCategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;


@RestController
@RequestMapping("/system/category")
public class WordCategoryController {
    @Autowired
    private IWordCategoryService categoryService;

    @GetMapping("/list")
    public List<WordCategory> listCategories() {
        return categoryService.getAllCategories();
    }
}
